// 2345位缩水工具
<template>
    <div>
        <div class="shrinkageBox">
           <!-- 菜单 -->
           <div class="shrinkageBox-tools flex flex-align-center">
               <div class="shrinkageBox-tools-left">
                   <p class="tools-tips">缩水工具</p>
                   <div class="tools-box flex flex-align-center" style="width:4rem" v-if="CaiPiaoType == 'l11x5'">
                       <div class="tools-box-item" :class="{'item-active':itemIndex==1}" @click="onChangeTab"><p>二位缩水工具</p></div>
                       <div class="tools-box-item" :class="{'item-active':itemIndex==2}" @click="onChangeTab"><p>三位缩水工具</p></div>
                       <div class="tools-box-item" :class="{'item-active':itemIndex==3}" @click="onChangeTab"><p>四位缩水工具</p></div>
                       <div class="tools-box-item" :class="{'item-active':itemIndex==4}" @click="onChangeTab"><p>五位缩水工具</p></div>
                   </div>
                   <div class="tools-box flex flex-align-center" style="width:4rem" v-if="CaiPiaoType == 'pk10'">
                       <div class="tools-box-item" :class="{'item-active':itemIndex==1}" @click="onChangeTab"><p>二名缩水工具</p></div>
                       <div class="tools-box-item" :class="{'item-active':itemIndex==2}" @click="onChangeTab"><p>三名缩水工具</p></div>
                       <div class="tools-box-item" :class="{'item-active':itemIndex==3}" @click="onChangeTab"><p>四名缩水工具</p></div>
                       <div class="tools-box-item" :class="{'item-active':itemIndex==4}" @click="onChangeTab"><p>五名缩水工具</p></div>
                   </div>
               </div>
               <div class="shrinkageBox-tools-left shrinkageBox-tools-right" v-if='false'>
                   <p class="tools-tips">更多功能</p>
                   <div class="tools-box flex flex-align-center">
                       <div class="tools-box-item" :class="{'item-active':itemIndex==5}" @click="onChangeTab"><p>多能缩水工具</p></div>
                   </div>
               </div>
           </div>
           <!-- 内容 -->
            <div class="toolsBox flex">
                <!-- 左边部分 -->
                 <div class="toolsBox-left flex flex-v" :class="{'wei_3':itemIndex==2}">
                     <!-- 第几位 -->
                    <div class="numBox">
                        <div class="nomRow flex flex-align-center" v-for='(item,index) in codeArr' :key="index">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,0,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,0,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,0,item.digit)">
                            <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,0,item.digit,it.num)"><p>{{it.num}}</p></div>
                        </div>
                        <div class="h" style="height:0.25rem" v-if="itemIndex == 4 && CaiPiaoType !='pk10'"></div>
                        <div class="h" style="height:0.04rem" v-if="itemIndex == 3 || itemIndex == 1 ||  CaiPiaoType =='pk10'"></div>
                        <div class="h" style="height:0.07rem" v-if="itemIndex == 2"></div>
                    </div>
                    <!-- 跨度 -->
                    <div class="numBox">
                        <div class="nomRow flex flex-align-center" v-for='(item,index) in crossspanArr' :key="index">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,1,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,1,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,1,item.digit)">
                            <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,1,item.digit,it.num)"><p>{{it.num}}</p></div>
                        </div>
                        <div class="h"></div>
                    </div>
                    <!-- 连号 -->
                    <div class="numBox">
                        <div class="nomRow flex flex-align-center" v-for='(item,index) in linkCodeArr' :key="index">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,2,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,2,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,2,item.digit)">
                            <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,2,item.digit,it.num)"><p>{{it.num}}</p></div>
                        </div>
                        <div class="h"></div>
                    </div>
                    <!-- 形态 -->
                    <div class="numBox">
                        <div class="nomRow flex flex-align-center" v-for='(item,index) in formArr' :key="index">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,3,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,3,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,3,item.digit)">
                            <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,3,item.digit,it.num)"><p>{{it.num}}</p></div>
                        </div>
                        <div class="h"></div>
                    </div>
                    <!-- 和尾 -->
                    <div class="numBox">
                        <div class="nomRow flex flex-align-center" v-for='(item,index) in tailingArr' :key="index">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,4,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,4,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,4,item.digit)">
                            <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,4,item.digit,it.num)"><p>{{it.num}}</p></div>
                        </div>
                        <div class="h"></div>
                    </div>
                    <!-- 和值 -->
                    <div class="numBox hezhiBox"  style="border:none">
                        <div v-for='(item,index) in sumArr' :key="index" class=" flex">
                            <div class="nomRow flex flex-align-center">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,5,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,5,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,5,item.digit)">
                            </div>
                            <div class="numBox">
                                <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,5,item.digit,it.num)"><p>{{it.num}}</p></div>
                            </div>
                        </div>
                         <div class="h"></div>
                    </div>
                    <!-- 012路 -->
                    <div class="numBox hezhiBox" v-if='itemIndex == 1 || itemIndex == 2'  style="border-top:solid 1px #ddd;border-bottom:none">
                        <div v-for='(item,index) in type012Arr' :key="index" class=" flex">
                            <div class="nomRow flex flex-align-center">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,6,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,6,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,6,item.digit)">
                            </div>
                            <div class="numBox">
                                <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,6,item.digit,it.num)"><p>{{it.num}}</p></div>
                            </div>
                        </div>
                    </div>
                 </div>
                 <!-- 右边部分 -->
                 <div class="toolsBox-right">
                    <!-- 胆码 -->
                    <div class="numBox">
                        <div class="nomRow flex flex-align-center" v-for='(item,index) in biliaryArr' :key="index">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,7,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,7,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,7,item.digit)">
                            <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,7,item.digit,it.num)"><p>{{it.num}}</p></div>
                        </div>
                        <div class="h" style="height:0.04rem"></div>
                    </div>
                    <!-- 大中小 -->
                    <div class="numBox hezhiBox" v-if='itemIndex == 1'>
                        <div v-for='(item,index) in codesizemiddlestrArr' :key="index" class=" flex">
                            <div class="nomRow flex flex-align-center">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,8,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,8,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,8,item.digit)">
                            </div>
                            <div class="numBox">
                                <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,8,item.digit,it.num)"><p>{{it.num}}</p></div>
                            </div>
                        </div>
                    </div>
                    <!-- 最大号/中间号/最小号 -->
                    <div class="numBox" v-if='itemIndex  == 3 || itemIndex  == 4'>
                        <div class="nomRow flex flex-align-center" v-for='(item,index) in firstcodeArr' :key="index">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,9,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,9,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,9,item.digit)">
                            <div style="min-width: 0.22rem;" class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,9,item.digit,it.num)"><p>{{it.num}}</p></div>
                        </div>
                        <div class="h" style="height:0.04rem"></div>
                    </div>
                    <!-- 大小比/奇偶比/质合比 -->
                    <div class="numBox" v-if='itemIndex  == 3 || itemIndex  == 4 || itemIndex  == 2'>
                        <div class="nomRow flex flex-align-center" v-for='(item,index) in sizeradioArr' :key="index">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,10,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,10,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,10,item.digit)">
                            <div style="min-width: 0.22rem;" class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,10,item.digit,it.num)"><p>{{it.num}}</p></div>
                        </div>
                        <div class="h" style="height:0.04rem"></div>
                    </div>
                    <!-- 奇偶 -->
                    <div class="numBox hezhiBox" v-if='itemIndex == 1 || itemIndex == 2' style="border:none">
                        <div v-for='(item,index) in oddevenArr' :key="index" class=" flex">
                            <div class="nomRow flex flex-align-center">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,11,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,11,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,11,item.digit)">
                            </div>
                            <div class="numBox" style="margin:0.08rem 0 0 0;min-height: 0.2rem;">
                                <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,11,item.digit,it.num)"><p>{{it.num}}</p></div>
                            </div>
                        </div>
                    </div>
                    <!-- 大小 -->
                    <div class="numBox hezhiBox" v-if='itemIndex == 1 || itemIndex == 2' style="border:none">
                        <div v-for='(item,index) in sizestrArr' :key="index" class=" flex">
                            <div class="nomRow flex flex-align-center">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,12,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,12,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,12,item.digit)">
                            </div>
                            <div class="numBox" style="margin:0.08rem 0 0 0;min-height: 0.2rem;">
                                <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,12,item.digit,it.num)"><p>{{it.num}}</p></div>
                            </div>
                        </div>
                    </div>
                    <!-- 质合 -->
                     <div class="numBox hezhiBox" v-if='itemIndex == 1 || itemIndex == 2'>
                        <div v-for='(item,index) in coincidenceArr' :key="index" class=" flex">
                            <div class="nomRow flex flex-align-center">
                            <p>{{item.digit}}</p>
                            <div class="dmbox" @click="onChangedmBox(index,13,item.digit)" :class="{'dmbox-active':item.isChangedmBox}"><p v-if='!item.isChangedmBox'>定码</p><p v-if='item.isChangedmBox'>杀码</p></div>
                            <img src="@/assets/img/shrinkagetool/qx.png" alt="" @click="onQxFun(index,13,item.digit)">
                            <img src="@/assets/img/shrinkagetool/qxqx.png" alt="" @click="onQuXiaoFun(index,13,item.digit)">
                            </div>
                            <div class="numBox" style="margin:0.08rem 0 0.08rem 0;min-height: 0.2rem;">
                                <div class="numIcon flex flex-align-center flex-pack-center" :class="{'numIcon-active':it.status == 1}" v-for='(it,e) in item.numTextArr' :key='e' @click="onChangeItem(index,e,13,item.digit,it.num)"><p>{{it.num}}</p></div>
                            </div>
                        </div>
                    </div>
                    <!-- 操作面板 -->
                    <div class="numBox" style="border:none;">
                        <div class="hezhi-Tools">
                                <div class="TabsBox flex">
                                    <div class="tabs-item flex flex-align-center flex-pack-center" @click="onGenerateFun">
                                        <img src="@/assets/img/shrinkagetool/shengc.png" alt="">
                                        <p>生成</p>
                                    </div>
                                    <div class="tabs-item flex flex-align-center flex-pack-center" @click="onRotationGroupFun">
                                        <img src="@/assets/img/shrinkagetool/zzx.png" alt="">
                                        <p>转组选</p>
                                    </div>
                                    <div class="tabs-item flex flex-align-center flex-pack-center" @click="onExportFun">
                                        <img src="@/assets/img/shrinkagetool/dc.png" alt="">
                                        <p>导出</p>
                                    </div>
                                    <div class="tabs-item flex flex-align-center flex-pack-center" @click="onCopyFun">
                                        <img src="@/assets/img/shrinkagetool/fz.png" alt="">
                                        <p>复制</p>
                                    </div>
                                    <div class="tabs-item flex flex-align-center flex-pack-center" @click="onResetFun">
                                        <img src="@/assets/img/shrinkagetool/cz.png" alt="">
                                        <p>重置所有条件</p>
                                    </div>
                                </div>
                                <p class="tips">本次生成{{total_num}}注</p>
                        </div>
                    </div>
                 </div>
            </div>
             <div class="Num-Box">
                <textarea readonly='true' v-model="NumVal" id='textCont'></textarea>
           </div>    
        </div>
    </div>
</template>
<script>
import Date from '@/assets/js/shrinkagetoolfivebits_l11x5json';
import Date_pk10 from '@/assets/js/shrinkagetoolfivebits_pk10json';
export default {
    data () {
        return {
            itemIndex:1, //选择几位缩水
            total_num:0, //生成注数
            NumVal:'', //生成数据
            is_client_export:0, //是否导出数据
            is_turn:0, //是否转组选
            star_num:2, //几星缩水
            file_name:'', //生成文件名
            // 展示数组
            codeArr: [], //位数
            crossspanArr: [], //跨度
            linkCodeArr: [], //连号
            formArr: [], //形态
            tailingArr: [], //和尾
            sumArr: [], //和值
            type012Arr: [], // 012路
            biliaryArr: [], //胆码
            codesizemiddlestrArr: [], //大中小
            oddevenArr: [], //奇偶
            sizestrArr: [], //大小
            coincidenceArr: [], //质合
            firstcodeArr: [], //最大号/中间号/最小号
            sizeradioArr: [], //大小比/奇偶比/质合比

            // 后端数据拼装
            wan_fixed_code_type:1, //第一名
            thousand_fixed_code_type:1, //第二名
            hundred_fixed_code_type:1, //第三名
            ten_fixed_code_type:1, //第四名
            position_fixed_code_type:1, //第五名
            thousand_biliary_code_type:1, //千位胆码
            hundred_biliary_code_type:1, //百位胆码
            ten_biliary_code_type:1, //十位胆码
            position_biliary_code_type:1, //个位胆码
            cross_span_code_type:1, //跨度
            code_form_type:1, //形态
            code_size_middle_str_type:1, //大中小
            code_size_str_type:1, //大小
            odd_even_code_type:1, //奇偶
            code_coincidence_type:1, //质合
            code_size_type:1, //大小比
            parity_radio_code_type:1, //奇偶比
            mass_radio_code_type:1, //质合比
            link_code_type:1, //连号
            sum_code_type:1, //和值
            tailing_code_type:1, //和尾
            code_type_012_type:1, //012路
            max_code_type:1, //最大号
            min_code_type:1, //最小号
            middle_code_type:1, //中间号

            // 数组
            wan_fixed_code_data:[], //第一名
            thousand_fixed_code_data:[], //第二名
            hundred_fixed_code_data:[], //第三名
            ten_fixed_code_data:[], //第四名
            position_fixed_code_data:[], //第五名
            thousand_biliary_code_data:[], //千位胆码
            hundred_biliary_code_data:[], //百位胆码
            ten_biliary_code_data:[], //十位胆码
            position_biliary_code_data:[], //个位胆码
            cross_span_code_data:[], //跨度
            code_form_data:[], //形态
            code_size_middle_str_data:[], //大中小
            code_size_str_data:[], //大小
            odd_even_code_data:[], //奇偶
            code_coincidence_data:[], //质合
            code_size_data:[], //大小比
            parity_radio_code_data:[], //奇偶比
            mass_radio_code_data:[], //质合比
            link_code_data:[], //连号
            sum_code_data:[], //和值
            tailing_code_data:[], //和尾
            code_type_012_data:[], //012路
            max_code_data:[], //最大号
            min_code_data:[], //最小号
            middle_code_data:[], //中间号
        }
    },
    mounted () {
       this.onSetDatafun();
    },
    computed: {
        CaiPiaoType(){
            return this.$store.state.CaiPiaoType;
        },
        CaiPiaoId(){
            return this.$store.state.lottery_id;
        }
    },
    watch: {
        // 监听彩种变化，改变页面数据，
        CaiPiaoType(){
            this.itemIndex = 1;
            this.resetNum();
            this.onSetDatafun();
        },
    },
    methods: {
        // 选择几位缩水
        onChangeTab(ele){
           if(ele.target.innerText == '二位缩水工具' || ele.target.innerText == '二名缩水工具'){
               this.star_num = 2;
               this.itemIndex = 1;
               this.onSetDatafun();
               this.resetNum();
           }else if(ele.target.innerText == '三位缩水工具' || ele.target.innerText == '三名缩水工具'){
               this.star_num = 3;
               this.itemIndex = 2;
               this.onSetDatafun();
               this.resetNum();
           }else if(ele.target.innerText == '四位缩水工具' || ele.target.innerText == '四名缩水工具'){
               this.star_num = 4;
               this.itemIndex = 3;
               this.onSetDatafun();
               this.resetNum();
           }else if(ele.target.innerText == '五位缩水工具' || ele.target.innerText == '五名缩水工具'){
               this.star_num = 5;
               this.itemIndex = 4;
               this.onSetDatafun();
               this.resetNum();
           }else if(ele.target.innerText == '多能缩水工具'){
               this.itemIndex = 5;
           }
        },

        // 初始化数据
        onSetDatafun(){
            if(this.CaiPiaoType == 'l11x5'){
            switch(this.itemIndex){
                case 1:
                     this.file_name = '二位缩水结果';
                     this.codeArr = Date.fixedArr2;
                     this.crossspanArr = Date.crossspanArr2;
                     this.linkCodeArr = Date.linkCodeArr2;
                     this.formArr = Date.formArr2;
                     this.tailingArr = Date.tailingArr2;
                     this.sumArr = Date.sumArr2;
                     this.type012Arr = Date.type012Arr2;
                     this.biliaryArr = Date.biliaryArr2;
                     this.codesizemiddlestrArr = Date.codesizemiddlestrArr2;
                     this.oddevenArr = Date.oddevenArr2;
                     this.sizestrArr = Date.sizestrArr2;
                     this.coincidenceArr = Date.coincidenceArr2;
                     break;
                case 2:
                     this.file_name = '三位缩水结果';
                     this.codeArr = Date.fixedArr3;
                     this.crossspanArr = Date.crossspanArr3;
                     this.linkCodeArr = Date.linkCodeArr3;
                     this.formArr = Date.formArr3;
                     this.tailingArr = Date.tailingArr3;
                     this.sumArr = Date.sumArr3;
                     this.type012Arr = Date.type012Arr3;
                     this.biliaryArr = Date.biliaryArr3;
                     this.sizeradioArr = Date.sizeradioArr3;
                     this.oddevenArr = Date.oddevenArr3;
                     this.sizestrArr = Date.sizestrArr3;
                     this.coincidenceArr = Date.coincidenceArr3;
                     break;
                case 3:
                     this.file_name = '四位缩水结果';
                     this.codeArr = Date.fixedArr4;
                     this.crossspanArr = Date.crossspanArr4;
                     this.linkCodeArr = Date.linkCodeArr4;
                     this.formArr = Date.formArr4;
                     this.tailingArr = Date.tailingArr4;
                     this.sumArr = Date.sumArr4;
                     this.biliaryArr = Date.biliaryArr4;
                     this.firstcodeArr = Date.firstcodeArr4;
                     this.sizeradioArr = Date.sizeradioArr4;
                     break;
                case 4:
                    this.file_name = '五位缩水结果';
                    this.codeArr = Date.fixedArr5;
                    this.crossspanArr = Date.crossspanArr5;
                    this.linkCodeArr = Date.linkCodeArr5;
                    this.formArr = Date.formArr5;
                    this.tailingArr = Date.tailingArr5;
                    this.sumArr = Date.sumArr5;
                    this.biliaryArr = Date.biliaryArr5;
                    this.firstcodeArr = Date.firstcodeArr5;
                    this.sizeradioArr = Date.sizeradioArr5;
                    break;
            }
            }else{
               switch(this.itemIndex){
                case 1:
                     this.file_name = '二名缩水结果';
                     this.codeArr = Date_pk10.fixedArr2;
                     this.crossspanArr = Date_pk10.crossspanArr2;
                     this.linkCodeArr = Date_pk10.linkCodeArr2;
                     this.formArr = Date_pk10.formArr2;
                     this.tailingArr = Date_pk10.tailingArr2;
                     this.sumArr = Date_pk10.sumArr2;
                     this.type012Arr = Date_pk10.type012Arr2;
                     this.biliaryArr = Date_pk10.biliaryArr2;
                     this.codesizemiddlestrArr = Date_pk10.codesizemiddlestrArr2;
                     this.oddevenArr = Date_pk10.oddevenArr2;
                     this.sizestrArr = Date_pk10.sizestrArr2;
                     this.coincidenceArr = Date_pk10.coincidenceArr2;
                     break;
                case 2:
                     this.file_name = '三名缩水结果';
                     this.codeArr = Date_pk10.fixedArr3;
                     this.crossspanArr = Date_pk10.crossspanArr3;
                     this.linkCodeArr = Date_pk10.linkCodeArr3;
                     this.formArr = Date_pk10.formArr3;
                     this.tailingArr = Date_pk10.tailingArr3;
                     this.sumArr = Date_pk10.sumArr3;
                     this.type012Arr = Date_pk10.type012Arr3;
                     this.biliaryArr = Date_pk10.biliaryArr3;
                     this.sizeradioArr = Date_pk10.sizeradioArr3;
                     this.oddevenArr = Date_pk10.oddevenArr3;
                     this.sizestrArr = Date_pk10.sizestrArr3;
                     this.coincidenceArr = Date_pk10.coincidenceArr3;
                     break;
                case 3:
                     this.file_name = '四名缩水结果';
                     this.codeArr = Date_pk10.fixedArr4;
                     this.crossspanArr = Date_pk10.crossspanArr4;
                     this.linkCodeArr = Date_pk10.linkCodeArr4;
                     this.formArr = Date_pk10.formArr4;
                     this.tailingArr = Date_pk10.tailingArr4;
                     this.sumArr = Date_pk10.sumArr4;
                     this.biliaryArr = Date_pk10.biliaryArr4;
                     this.firstcodeArr = Date_pk10.firstcodeArr4;
                     this.sizeradioArr = Date_pk10.sizeradioArr4;
                     break;
                case 4:
                    this.file_name = '五名缩水结果';
                    this.codeArr = Date_pk10.fixedArr5;
                    this.crossspanArr = Date_pk10.crossspanArr5;
                    this.linkCodeArr = Date_pk10.linkCodeArr5;
                    this.formArr = Date_pk10.formArr5;
                    this.tailingArr = Date_pk10.tailingArr5;
                    this.sumArr = Date_pk10.sumArr5;
                    this.biliaryArr = Date_pk10.biliaryArr5;
                    this.firstcodeArr = Date_pk10.firstcodeArr5;
                    this.sizeradioArr = Date_pk10.sizeradioArr5;
                    break;
            }
            }
        },

        // 重置所有条件
        resetNum(){
            this.NumVal='';
            this.total_num=0;
            this.wan_fixed_code_type=1, //第一名
            this.thousand_fixed_code_type=1, //第二名
            this.hundred_fixed_code_type=1, //第三名
            this.ten_fixed_code_type=1, //第四名
            this.position_fixed_code_type=1, //第五名
            this.thousand_biliary_code_type=1, //千位胆码
            this.hundred_biliary_code_type=1, //百位胆码
            this.ten_biliary_code_type=1, //十位胆码
            this.position_biliary_code_type=1, //个位胆码
            this.cross_span_code_type=1, //跨度
            this.code_form_type=1, //形态
            this.code_size_middle_str_type=1, //大中小
            this.code_size_str_type=1, //大小
            this.odd_even_code_type=1, //奇偶
            this.code_coincidence_type=1, //质合
            this.code_size_type=1, //大小比
            this.parity_radio_code_type=1, //奇偶比
            this.mass_radio_code_type=1, //质合比
            this.link_code_type=1, //连号
            this.sum_code_type=1, //和值
            this.tailing_code_type=1, //和尾
            this.code_type_012_type=1, //012路
            this.max_code_type=1, //最大号
            this.min_code_type=1, //最小号
            this.middle_code_type=1; //中间号
            this.wan_fixed_code_data=[], //第一名
            this.thousand_fixed_code_data=[], //第二名
            this.hundred_fixed_code_data=[], //第三名
            this.ten_fixed_code_data=[], //第四名
            this.position_fixed_code_data=[], //第五名
            this.thousand_biliary_code_data=[], //千位胆码
            this.hundred_biliary_code_data=[], //百位胆码
            this.ten_biliary_code_data=[], //十位胆码
            this.position_biliary_code_data=[], //个位胆码
            this.cross_span_code_data=[], //跨度
            this.code_form_data=[], //形态
            this.code_size_middle_str_data=[], //大中小
            this.code_size_str_data=[], //大小
            this.odd_even_code_data=[], //奇偶
            this.code_coincidence_data=[], //质合
            this.code_size_data=[], //大小比
            this.parity_radio_code_data=[], //奇偶比
            this.mass_radio_code_data=[], //质合比
            this.link_code_data=[], //连号
            this.sum_code_data=[], //和值
            this.tailing_code_data=[], //和尾
            this.code_type_012_data=[], //012路
            this.max_code_data=[], //最大号
            this.min_code_data=[], //最小号
            this.middle_code_data=[]; //中间号
            for(let i in this.codeArr){
                this.codeArr[i].isChangedmBox = false;
                for(let k in  this.codeArr[i].numTextArr){
                    this.codeArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.crossspanArr){
                this.crossspanArr[i].isChangedmBox = false;
                for(let k in  this.crossspanArr[i].numTextArr){
                    this.crossspanArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.linkCodeArr){
                this.linkCodeArr[i].isChangedmBox = false;
                for(let k in  this.linkCodeArr[i].numTextArr){
                    this.linkCodeArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.formArr){
                this.formArr[i].isChangedmBox = false;
                for(let k in  this.formArr[i].numTextArr){
                    this.formArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.tailingArr){
                this.tailingArr[i].isChangedmBox = false;
                for(let k in  this.tailingArr[i].numTextArr){
                    this.tailingArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.sumArr){
                this.sumArr[i].isChangedmBox = false;
                for(let k in  this.sumArr[i].numTextArr){
                    this.sumArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.type012Arr){  
                this.type012Arr[i].isChangedmBox = false;
                for(let k in  this.type012Arr[i].numTextArr){
                    this.type012Arr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.biliaryArr){  
                this.biliaryArr[i].isChangedmBox = false;
                for(let k in  this.biliaryArr[i].numTextArr){
                    this.biliaryArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.codesizemiddlestrArr){  
                this.codesizemiddlestrArr[i].isChangedmBox = false;
                for(let k in  this.codesizemiddlestrArr[i].numTextArr){
                    this.codesizemiddlestrArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.oddevenArr){  
                this.oddevenArr[i].isChangedmBox = false;
                for(let k in  this.oddevenArr[i].numTextArr){
                    this.oddevenArr[i].numTextArr[k].status = 0;
                }
            }
             for(let i in this.sizestrArr){  
                this.sizestrArr[i].isChangedmBox = false;
                for(let k in  this.sizestrArr[i].numTextArr){
                    this.sizestrArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.coincidenceArr){  
                this.coincidenceArr[i].isChangedmBox = false;
                for(let k in  this.coincidenceArr[i].numTextArr){
                    this.coincidenceArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.firstcodeArr){  
                this.firstcodeArr[i].isChangedmBox = false;
                for(let k in  this.firstcodeArr[i].numTextArr){
                    this.firstcodeArr[i].numTextArr[k].status = 0;
                }
            }
            for(let i in this.sizeradioArr){  
                this.sizeradioArr[i].isChangedmBox = false;
                for(let k in  this.sizeradioArr[i].numTextArr){
                    this.sizeradioArr[i].numTextArr[k].status = 0;
                }
            }           
        },

        // 定码 杀码
        onChangedmBox(ele,type,group){
            if(type === 0){ //几位缩水
                this.codeArr[ele].isChangedmBox = !this.codeArr[ele].isChangedmBox;
                if(this.codeArr[ele].isChangedmBox){
                    switch(group){
                        case '第五位': this.position_fixed_code_type = 2;break;
                        case '第四位': this.ten_fixed_code_type = 2;break;
                        case '第三位': this.hundred_fixed_code_type = 2;break;
                        case '第二位': this.thousand_fixed_code_type = 2;break;
                        case '第一位': this.wan_fixed_code_data = 2;break;
                        case '第五名': this.position_fixed_code_type = 2;break;
                        case '第四名': this.ten_fixed_code_type = 2;break;
                        case '第三名': this.hundred_fixed_code_type = 2;break;
                        case '第二名': this.thousand_fixed_code_type = 2;break;
                        case '第一名': this.wan_fixed_code_data = 2;break;
                    }
                }else{
                    switch(group){
                        case '第五位': this.position_fixed_code_type = 1;break;
                        case '第四位': this.ten_fixed_code_type = 1;break;
                        case '第三位': this.hundred_fixed_code_type = 1;break;
                        case '第二位': this.thousand_fixed_code_type = 1;break;
                        case '第一位': this.wan_fixed_code_data = 1;break;
                        case '第五名': this.position_fixed_code_type = 1;break;
                        case '第四名': this.ten_fixed_code_type = 1;break;
                        case '第三名': this.hundred_fixed_code_type = 1;break;
                        case '第二名': this.thousand_fixed_code_type = 1;break;
                        case '第一名': this.wan_fixed_code_data = 1;break;
                    }
                }
            }else if(type === 1){ //跨度
                 this.crossspanArr[ele].isChangedmBox = !this.crossspanArr[ele].isChangedmBox;
                 if(this.crossspanArr[ele].isChangedmBox){
                     this.cross_span_code_type = 2;
                 }else{
                     this.cross_span_code_type = 1;
                 }
            }else if(type === 2){ //连号
                 this.linkCodeArr[ele].isChangedmBox = !this.linkCodeArr[ele].isChangedmBox;
                 if(this.linkCodeArr[ele].isChangedmBox){
                     this.link_code_type = 2;
                 }else{
                     this.link_code_type = 1;
                 }
            }else if(type === 3){ //形态
                 this.formArr[ele].isChangedmBox = !this.formArr[ele].isChangedmBox;
                 if(this.formArr[ele].isChangedmBox){
                     this.code_form_type = 2;
                 }else{
                     this.code_form_type = 1;
                 }
            }else if(type === 4){ //和尾
                 this.tailingArr[ele].isChangedmBox = !this.tailingArr[ele].isChangedmBox;
                 if(this.tailingArr[ele].isChangedmBox){
                     this.tailing_code_type = 2;
                 }else{
                     this.tailing_code_type = 1;
                 }
            }else if(type === 5){ //合值
                 this.sumArr[ele].isChangedmBox = !this.sumArr[ele].isChangedmBox;
                 if(this.sumArr[ele].isChangedmBox){
                     this.sum_code_type = 2;
                 }else{
                     this.sum_code_type = 1;
                 } 
            }else if(type === 6){ //012路
                this.type012Arr[ele].isChangedmBox = !this.type012Arr[ele].isChangedmBox;
                 if(this.type012Arr[ele].isChangedmBox){
                     this.code_type_012_type = 2;
                 }else{
                     this.code_type_012_type = 1;
                 } 
            }else if(type === 7){ //胆码
                this.biliaryArr[ele].isChangedmBox = !this.biliaryArr[ele].isChangedmBox;
                if(this.biliaryArr[ele].isChangedmBox){
                    switch(group){
                        case '胆码1': this.position_biliary_code_type = 2;break;
                        case '胆码2': this.ten_biliary_code_type = 2;break;
                        case '胆码3': this.hundred_biliary_code_type = 2;break;
                        case '胆码4': this.thousand_biliary_code_type = 2;break;
                    }
                }else{
                    switch(group){
                        case '胆码1': this.position_biliary_code_type = 1;break;
                        case '胆码2': this.ten_biliary_code_type = 1;break;
                        case '胆码3': this.hundred_biliary_code_type = 1;break;
                        case '胆码4': this.thousand_biliary_code_type = 1;break;
                    }
                }
            }else if(type === 8){ //大中小
                 this.codesizemiddlestrArr[ele].isChangedmBox = !this.codesizemiddlestrArr[ele].isChangedmBox;
                 if(this.codesizemiddlestrArr[ele].isChangedmBox){
                     this.code_size_middle_str_type = 2;
                 }else{
                     this.code_size_middle_str_type = 1;
                 } 
            }else if(type === 9){ // 最大号中间号  最小号
               this.firstcodeArr[ele].isChangedmBox = !this.firstcodeArr[ele].isChangedmBox;
                if(this.firstcodeArr[ele].isChangedmBox){
                    switch(group){
                        case '最大号': this.max_code_type = 2;break;
                        case '中间号': this.middle_code_type = 2;break;
                        case '最小号': this.min_code_type = 2;break;
                    }
                }else{
                    switch(group){
                        case '最大号': this.max_code_type = 1;break;
                        case '中间号': this.middle_code_type = 1;break;
                        case '最小号': this.min_code_type = 1;break;
                    }
                }
            }else if(type === 10){ //大小比 奇偶比
                this.sizeradioArr[ele].isChangedmBox = !this.sizeradioArr[ele].isChangedmBox;
                if(this.sizeradioArr[ele].isChangedmBox){
                    switch(group){
                        case '大小比': this.code_size_type = 2;break;
                        case '奇偶比': this.parity_radio_code_type = 2;break;
                        case '质合比': this.mass_radio_code_type = 2;break;
                    }
                }else{
                    switch(group){
                        case '大小比': this.code_size_type = 1;break;
                        case '奇偶比': this.parity_radio_code_type = 1;break;
                        case '质合比': this.mass_radio_code_type = 1;break;
                    }
                }
            }else if(type === 11){ //奇偶
                 this.oddevenArr[ele].isChangedmBox = !this.oddevenArr[ele].isChangedmBox;
                 if(this.oddevenArr[ele].isChangedmBox){
                     this.odd_even_code_type = 2;
                 }else{
                     this.odd_even_code_type = 1;
                 } 
            }else if(type === 12){ //大小
                this.sizestrArr[ele].isChangedmBox = !this.sizestrArr[ele].isChangedmBox;
                 if(this.sizestrArr[ele].isChangedmBox){
                     this.code_size_str_type = 2;
                 }else{
                     this.code_size_str_type = 1;
                 } 
            }else if(type === 13){ //质合
                 this.coincidenceArr[ele].isChangedmBox = !this.coincidenceArr[ele].isChangedmBox;
                 if(this.coincidenceArr[ele].isChangedmBox){
                     this.code_coincidence_type = 2;
                 }else{
                     this.code_coincidence_type = 1;
                 } 
            }
        },

        // 全选
        onQxFun(index,type,group){
            if(type === 0){
                for(var i in this.codeArr[index].numTextArr){
                    this.codeArr[index].numTextArr[i].status = 1;
                    switch(group){
                        case '第五位':
                                this.position_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                        case '第四位':
                                this.ten_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                        case '第三位':
                                this.hundred_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                        case '第二位':
                                this.thousand_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                        case '第一位':
                                this.wan_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                            // pk10
                        case '第五名':
                                this.position_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                        case '第四名':
                                this.ten_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                        case '第三名':
                                this.hundred_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                        case '第二名':
                                this.thousand_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                        case '第一名':
                                this.wan_fixed_code_data.push(this.codeArr[index].numTextArr[i].num);
                            break;
                    }
                }
            }else if(type === 1){ //跨度
                for(var i in this.crossspanArr[index].numTextArr){ 
                    this.crossspanArr[index].numTextArr[i].status = 1;
                     this.cross_span_code_data.push(this.crossspanArr[index].numTextArr[i].num);
                } 
            }else if(type === 2){ //连号
                for(var i in this.linkCodeArr[index].numTextArr){   
                    this.linkCodeArr[index].numTextArr[i].status = 1;
                    this.link_code_data.push(this.linkCodeArr[index].numTextArr[i].num);
                }
            }else if(type === 3){ //形态
               for(var i in this.formArr[index].numTextArr){
                    this.formArr[index].numTextArr[i].status = 1;
                    this.code_form_data.push(this.formArr[index].numTextArr[i].num);
                }
            }else if(type === 4){ //和尾
                for(var i in this.tailingArr[index].numTextArr){
                            this.tailingArr[index].numTextArr[i].status = 1;
                            this.tailing_code_data.push(this.tailingArr[index].numTextArr[i].num);
                        }
            }else if(type === 5){ //和值
                for(var i in this.sumArr[index].numTextArr){
                    this.sumArr[index].numTextArr[i].status = 1;
                    this.sum_code_data.push(this.sumArr[index].numTextArr[i].num);
                }
            }else if(type === 6){ //012路
               for(var i in this.type012Arr[index].numTextArr){
                    this.type012Arr[index].numTextArr[i].status = 1;
                    this.code_type_012_data.push(this.type012Arr[index].numTextArr[i].num);
                }
            }else if(type === 7){ //胆码
                for(var i in this.biliaryArr[index].numTextArr){
                    this.biliaryArr[index].numTextArr[i].status = 1;
                    if(this.star_num == 5 || this.star_num == 4){
                        switch(group){
                            case '胆码1':
                                    this.thousand_biliary_code_data.push(this.biliaryArr[index].numTextArr[i].num);
                                break;
                            case '胆码2':
                                    this.hundred_biliary_code_data.push(this.biliaryArr[index].numTextArr[i].num);
                                break;
                            case '胆码3':
                                    this.ten_biliary_code_data.push(this.biliaryArr[index].numTextArr[i].num);
                                break;
                            case '胆码4':
                                    this.position_biliary_code_data.push(this.biliaryArr[index].numTextArr[i].num);
                                break;
                        }
                    }else if(this.star_num == 3){
                          switch(group){
                            case '胆码1':
                                    this.hundred_biliary_code_data.push(this.biliaryArr[index].numTextArr[i].num);
                                break;
                            case '胆码2':
                                    this.ten_biliary_code_data.push(this.biliaryArr[index].numTextArr[i].num);
                                break;
                            case '胆码3':
                                    this.position_biliary_code_data.push(this.biliaryArr[index].numTextArr[i].num);
                                break;
                        }
                    }else{
                        switch(group){
                            case '胆码1':
                                    this.ten_biliary_code_data.push(this.biliaryArr[index].numTextArr[i].num);
                                break;
                            case '胆码2':
                                    this.position_biliary_code_data.push(this.biliaryArr[index].numTextArr[i].num);
                                break;
                        } 
                    }
                }
            }else if(type === 8){ // 大中小
                for(var i in this.codesizemiddlestrArr[index].numTextArr){
                    this.codesizemiddlestrArr[index].numTextArr[i].status = 1;
                    this.code_size_middle_str_data.push(this.codesizemiddlestrArr[index].numTextArr[i].num);
                }
            }else if(type === 9){ // 最大号 中间号 最小号
                for(var i in this.firstcodeArr[index].numTextArr){
                    this.firstcodeArr[index].numTextArr[i].status = 1;
                    switch(group){
                        case '最大号':
                                this.max_code_data.push(this.firstcodeArr[index].numTextArr[i].num);
                            break;
                        case '最小号':
                                this.min_code_data.push(this.firstcodeArr[index].numTextArr[i].num);
                            break;
                        case '中间号':
                                this.middle_code_data.push(this.firstcodeArr[index].numTextArr[i].num);
                            break;
                    }
                }
            }else if(type === 10){ //奇偶比 大小比 质合比
                for(var i in this.sizeradioArr[index].numTextArr){
                    this.sizeradioArr[index].numTextArr[i].status = 1;
                    switch(group){
                        case '大小比':
                                this.code_size_data.push(this.sizeradioArr[index].numTextArr[i].num);
                            break;
                        case '奇偶比':
                                this.parity_radio_code_data.push(this.sizeradioArr[index].numTextArr[i].num);
                            break;
                        case '质合比':
                                this.mass_radio_code_data.push(this.sizeradioArr[index].numTextArr[i].num);
                            break;
                    }
                }
            }else if(type === 11){ //奇偶
                for(var i in this.oddevenArr[index].numTextArr){
                    this.oddevenArr[index].numTextArr[i].status = 1;
                    this.odd_even_code_data.push(this.oddevenArr[index].numTextArr[i].num);
                }
            }else if(type === 12){ //大小
                for(var i in this.sizestrArr[index].numTextArr){
                    this.sizestrArr[index].numTextArr[i].status = 1;
                    this.code_size_str_data.push(this.sizestrArr[index].numTextArr[i].num);
                }
            }else if(type === 13){ //质合
                 for(var i in this.coincidenceArr[index].numTextArr){
                    this.coincidenceArr[index].numTextArr[i].status = 1;
                    this.code_coincidence_data.push(this.coincidenceArr[index].numTextArr[i].num);
                }
            }
        },

        // 取消全选
        onQuXiaoFun(index,type,group){ 
            if(type === 0){
                for(var i in this.codeArr[index].numTextArr){
                    this.codeArr[index].numTextArr[i].status = 0;
                    switch(group){
                        case '第五位':
                                this.position_fixed_code_data = [];
                            break;
                        case '第四位':
                                this.ten_fixed_code_data=[];
                            break;
                        case '第三位':
                                this.hundred_fixed_code_data=[];
                            break;
                        case '第二位':
                                this.thousand_fixed_code_data=[];
                            break;
                        case '第一位':
                                this.wan_fixed_code_data=[];
                            break;
                        // pk10
                        case '第五位':
                                this.position_fixed_code_data = [];
                            break;
                        case '第四名':
                                this.ten_fixed_code_data=[];
                            break;
                        case '第三名':
                                this.hundred_fixed_code_data=[];
                            break;
                        case '第二名':
                                this.thousand_fixed_code_data=[];
                            break;
                        case '第一名':
                                this.wan_fixed_code_data=[];
                            break;
                    }
                }
            }else if(type === 1){ //跨度
                for(var i in this.crossspanArr[index].numTextArr){ 
                    this.crossspanArr[index].numTextArr[i].status = 0;
                     this.cross_span_code_data=[];
                } 
            }else if(type === 2){ //连号
                for(var i in this.linkCodeArr[index].numTextArr){   
                    this.linkCodeArr[index].numTextArr[i].status = 0;
                    this.link_code_data=[];
                }
            }else if(type === 3){ //形态
               for(var i in this.formArr[index].numTextArr){
                    this.formArr[index].numTextArr[i].status = 0;
                    this.code_form_data=[];
                }
            }else if(type === 4){ //和尾
                for(var i in this.tailingArr[index].numTextArr){
                            this.tailingArr[index].numTextArr[i].status = 0;
                            this.tailing_code_data=[];
                        }
            }else if(type === 5){ //和值
                for(var i in this.sumArr[index].numTextArr){
                    this.sumArr[index].numTextArr[i].status = 0;
                    this.sum_code_data=[];
                }
            }else if(type === 6){ //012路
               for(var i in this.type012Arr[index].numTextArr){
                    this.type012Arr[index].numTextArr[i].status = 0;
                    this.code_type_012_data=[];
                }
            }else if(type === 7){ //胆码
                for(var i in this.biliaryArr[index].numTextArr){
                    this.biliaryArr[index].numTextArr[i].status = 0;
                    if(this.star_num == 5 || this.star_num == 4){
                        switch(group){
                            case '胆码1':
                                    this.thousand_biliary_code_data=[];
                                break;
                            case '胆码2':
                                    this.hundred_biliary_code_data=[];
                                break;
                            case '胆码3':
                                    this.ten_biliary_code_data=[];
                                break;
                            case '胆码4':
                                    this.position_biliary_code_data=[];
                                break;
                        }
                    }else if(this.star_num == 3){
                        switch(group){
                            case '胆码1':
                                    this.hundred_biliary_code_data=[];
                                break;
                            case '胆码2':
                                    this.ten_biliary_code_data=[];
                                break;
                            case '胆码3':
                                    this.position_biliary_code_data=[];
                                break;
                        }
                    }else{
                        switch(group){
                            case '胆码1':
                                    this.ten_biliary_code_data=[];
                                break;
                            case '胆码2':
                                    this.position_biliary_code_data=[];
                                break;
                        }
                    }
                }
            }else if(type === 8){ // 大中小
                for(var i in this.codesizemiddlestrArr[index].numTextArr){
                    this.codesizemiddlestrArr[index].numTextArr[i].status = 0;
                    this.code_size_middle_str_data=[];
                }
            }else if(type === 9){ // 最大号 中间号 最小号
                for(var i in this.firstcodeArr[index].numTextArr){
                    this.firstcodeArr[index].numTextArr[i].status = 0;
                    switch(group){
                        case '最大号':
                                this.max_code_data=[];
                            break;
                        case '最小号':
                                this.min_code_data=[];
                            break;
                        case '中间号':
                                this.middle_code_data=[];
                            break;
                    }
                }
            }else if(type === 10){ //奇偶比 大小比 质合比
                for(var i in this.sizeradioArr[index].numTextArr){
                    this.sizeradioArr[index].numTextArr[i].status = 0;
                    switch(group){
                        case '大小比':
                                this.code_size_data=[];
                            break;
                        case '奇偶比':
                                this.parity_radio_code_data=[];
                            break;
                        case '质合比':
                                this.mass_radio_code_data=[];
                            break;
                    }
                }
            }else if(type === 11){ //奇偶
                for(var i in this.oddevenArr[index].numTextArr){
                    this.oddevenArr[index].numTextArr[i].status = 0;
                    this.odd_even_code_data=[];
                }
            }else if(type === 12){ //大小
                for(var i in this.sizestrArr[index].numTextArr){
                    this.sizestrArr[index].numTextArr[i].status = 0;
                    this.code_size_str_data=[];
                }
            }else if(type === 13){ //质合
                 for(var i in this.coincidenceArr[index].numTextArr){
                    this.coincidenceArr[index].numTextArr[i].status = 0;
                    this.code_coincidence_data=[];
                }
            }
        },

        // 选码切换
        onChangeItem(index,ele,type,group,val){
            if(type === 0){
                if(this.codeArr[index].numTextArr[ele].status){
                    this.codeArr[index].numTextArr[ele].status = 0;
                    if(this.star_num == 5){
                        switch(group){
                            case '第五位':
                                    let index = this.position_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第四位':
                                    index = this.ten_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第三位':
                                    index = this.hundred_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.hundred_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第二位':
                                    index = this.thousand_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.thousand_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第一位':
                                    index = this.wan_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.wan_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            // pk10
                            case '第五名':
                                    index = this.position_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第四名':
                                    index = this.ten_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第三名':
                                    index = this.hundred_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.hundred_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第二名':
                                    index = this.thousand_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.thousand_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第一名':
                                    index = this.wan_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.wan_fixed_code_data.splice(index, 1);
                                    };
                                break;
                        }
                    }else if(this.star_num == 4){
                        switch(group){
                            case '第四位':
                                    let index = this.position_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第三位':
                                    index = this.ten_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第二位':
                                    index = this.hundred_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.hundred_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第一位':
                                    index = this.thousand_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.thousand_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            // pk10
                            case '第四名':
                                    index = this.position_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第三名':
                                    index = this.ten_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第二名':
                                    index = this.hundred_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.hundred_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第一名':
                                    index = this.thousand_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.thousand_fixed_code_data.splice(index, 1);
                                    };
                                break;
                        }
                    }else if(this.star_num == 3){
                        switch(group){
                            case '第三位':
                                    let index = this.position_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第二位':
                                    index = this.ten_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第一位':
                                    index = this.hundred_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.hundred_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            // pk10
                            case '第三名':
                                    index = this.position_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第二名':
                                    index = this.ten_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第一名':
                                    index = this.hundred_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.hundred_fixed_code_data.splice(index, 1);
                                    };
                                break;
                        }
                    }else{
                        switch(group){
                            case '第二位':
                                    let index = this.position_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第一位':
                                    index = this.ten_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            // pk10
                            case '第二名':
                                    index = this.position_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_fixed_code_data.splice(index, 1);
                                    };
                                break;
                            case '第一名':
                                    index = this.ten_fixed_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_fixed_code_data.splice(index, 1);
                                    };
                                break;
                        }
                    }
                }else{
                    this.codeArr[index].numTextArr[ele].status = 1;
                    if(this.star_num == 5){
                        switch(group){
                            case '第五位':
                                this.position_fixed_code_data.push(val);
                                break;
                            case '第四位':
                                this.ten_fixed_code_data.push(val);
                                break;
                            case '第三位':
                                this.hundred_fixed_code_data.push(val);
                                break;
                            case '第二位':
                                this.thousand_fixed_code_data.push(val);
                                break;
                            case '第一位':
                                this.wan_fixed_code_data.push(val);
                                break;
                            // pk10
                            case '第五名':
                                this.position_fixed_code_data.push(val);
                                break;
                            case '第四名':
                                this.ten_fixed_code_data.push(val);
                                break;
                            case '第三名':
                                this.hundred_fixed_code_data.push(val);
                                break;
                            case '第二名':
                                this.thousand_fixed_code_data.push(val);
                                break;
                            case '第一名':
                                this.wan_fixed_code_data.push(val);
                                break;
                        }
                    }else if(this.star_num == 4){
                         switch(group){
                            case '第四位':
                                this.position_fixed_code_data.push(val);
                                break;
                            case '第三位':
                                this.ten_fixed_code_data.push(val);
                                break;
                            case '第二位':
                                this.hundred_fixed_code_data.push(val);
                                break;
                            case '第一位':
                                this.thousand_fixed_code_data.push(val);
                                break;
                            // pk10
                            case '第四名':
                                this.position_fixed_code_data.push(val);
                                break;
                            case '第三名':
                                this.ten_fixed_code_data.push(val);
                                break;
                            case '第二名':
                                this.hundred_fixed_code_data.push(val);
                                break;
                            case '第一名':
                                this.thousand_fixed_code_data.push(val);
                                break;
                        }
                    }else if(this.star_num == 3){
                         switch(group){
                            case '第三位':
                                this.position_fixed_code_data.push(val);
                                break;
                            case '第二位':
                                this.ten_fixed_code_data.push(val);
                                break;
                            case '第一位':
                                this.hundred_fixed_code_data.push(val);
                                break;
                            // pk10
                            case '第三名':
                                this.position_fixed_code_data.push(val);
                                break;
                            case '第二名':
                                this.ten_fixed_code_data.push(val);
                                break;
                            case '第一名':
                                this.hundred_fixed_code_data.push(val);
                                break;
                        }
                    }else{
                        switch(group){
                            case '第二位':
                                this.position_fixed_code_data.push(val);
                                break;
                            case '第一位':
                                this.ten_fixed_code_data.push(val);
                                break;
                            // pk10
                            case '第二名':
                                this.position_fixed_code_data.push(val);
                                break;
                            case '第一名':
                                this.ten_fixed_code_data.push(val);
                                break;
                        }
                    }
                }
            }else if(type === 1){ //跨码
               if(this.crossspanArr[index].numTextArr[ele].status){
                     this.crossspanArr[index].numTextArr[ele].status = 0;
                     index = this.cross_span_code_data.indexOf(val);
                    if (index > -1) {
                        this.cross_span_code_data.splice(index, 1);
                    };
                }else{
                    this.crossspanArr[index].numTextArr[ele].status = 1;
                    this.cross_span_code_data.push(val);
                }
            }else if(type === 2){ //连号
                if(this.linkCodeArr[index].numTextArr[ele].status){
                     this.linkCodeArr[index].numTextArr[ele].status = 0;
                     index = this.link_code_data.indexOf(val);
                    if (index > -1) {
                        this.link_code_data.splice(index, 1);
                    };
                }else{
                    this.linkCodeArr[index].numTextArr[ele].status = 1;
                    this.link_code_data.push(val);
                }
            }else if(type === 3){ //形态
                if(this.formArr[index].numTextArr[ele].status){
                     this.formArr[index].numTextArr[ele].status = 0;
                     index = this.code_form_data.indexOf(val);
                    if (index > -1) {
                        this.code_form_data.splice(index, 1);
                    };
                }else{
                    this.formArr[index].numTextArr[ele].status = 1;
                    this.code_form_data.push(val);
                }
            }else if(type === 4){ //和尾
                if(this.tailingArr[index].numTextArr[ele].status){
                     this.tailingArr[index].numTextArr[ele].status = 0;
                     index = this.tailing_code_data.indexOf(val);
                    if (index > -1) {
                        this.tailing_code_data.splice(index, 1);
                    };
                }else{
                    this.tailingArr[index].numTextArr[ele].status = 1;
                    this.tailing_code_data.push(val);
                }
            }else if(type === 5){ //和值
                 if(this.sumArr[index].numTextArr[ele].status){
                     this.sumArr[index].numTextArr[ele].status = 0;
                     index = this.sum_code_data.indexOf(val);
                    if (index > -1) {
                        this.sum_code_data.splice(index, 1);
                    };
                }else{
                    this.sumArr[index].numTextArr[ele].status = 1;
                    this.sum_code_data.push(val);
                }
            }else if(type === 6){
                if(this.type012Arr[index].numTextArr[ele].status){
                     this.type012Arr[index].numTextArr[ele].status = 0;
                     index = this.code_type_012_data.indexOf(val);
                    if (index > -1) {
                        this.code_type_012_data.splice(index, 1);
                    };
                }else{
                    this.type012Arr[index].numTextArr[ele].status = 1;
                    this.code_type_012_data.push(val);
                }
            }else if(type === 7){
                    if(this.biliaryArr[index].numTextArr[ele].status){
                    this.biliaryArr[index].numTextArr[ele].status = 0;
                    if(this.star_num == 5 || this.star_num == 4){
                        switch(group){
                            case '胆码4':
                                    let index = this.position_biliary_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_biliary_code_data.splice(index, 1);
                                    };
                                break;
                            case '胆码3':
                                    index = this.ten_biliary_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_biliary_code_data.splice(index, 1);
                                    };
                                break;
                            case '胆码2':
                                    index = this.hundred_biliary_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.hundred_biliary_code_data.splice(index, 1);
                                    };
                                break;
                            case '胆码1':
                                    index = this.thousand_biliary_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.thousand_biliary_code_data.splice(index, 1);
                                    };
                                break;
                        }
                    }else if(this.star_num == 3){
                        switch(group){
                            case '胆码3':
                                    let index = this.position_biliary_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_biliary_code_data.splice(index, 1);
                                    };
                                break;
                            case '胆码2':
                                    index = this.ten_biliary_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_biliary_code_data.splice(index, 1);
                                    };
                                break;
                            case '胆码1':
                                    index = this.hundred_biliary_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.hundred_biliary_code_data.splice(index, 1);
                                    };
                                break;
                        }
                    }else{
                        switch(group){
                            case '胆码2':
                                    let index = this.position_biliary_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.position_biliary_code_data.splice(index, 1);
                                    };
                                break;
                            case '胆码1':
                                    index = this.ten_biliary_code_data.indexOf(val);
                                    if (index > -1) {
                                        this.ten_biliary_code_data.splice(index, 1);
                                    };
                                break;
                        } 
                    }
                }else{
                    this.biliaryArr[index].numTextArr[ele].status = 1;
                    if(this.star_num == 5 || this.star_num == 4){
                        switch(group){
                            case '胆码4':
                                this.position_biliary_code_data.push(val);
                                break;
                            case '胆码3':
                                this.ten_biliary_code_data.push(val);
                                break;
                            case '胆码2':
                                this.hundred_biliary_code_data.push(val);
                                break;
                            case '胆码1':
                                this.thousand_biliary_code_data.push(val);
                                break;
                        }
                    }else if(this.star_num == 3){
                        switch(group){
                            case '胆码3':
                                this.position_biliary_code_data.push(val);
                                break;
                            case '胆码2':
                                this.ten_biliary_code_data.push(val);
                                break;
                            case '胆码1':
                                this.hundred_biliary_code_data.push(val);
                                break;
                        }
                    }else{
                        switch(group){
                            case '胆码2':
                                this.position_biliary_code_data.push(val);
                                break;
                            case '胆码1':
                                this.ten_biliary_code_data.push(val);
                                break;
                        }
                    }
                }
            }else if(type === 8){ //大中小
                if(this.codesizemiddlestrArr[index].numTextArr[ele].status){
                     this.codesizemiddlestrArr[index].numTextArr[ele].status = 0;
                     index = this.code_size_middle_str_data.indexOf(val);
                    if (index > -1) {
                        this.code_size_middle_str_data.splice(index, 1);
                    };
                }else{
                    this.codesizemiddlestrArr[index].numTextArr[ele].status = 1;
                    this.code_size_middle_str_data.push(val);
                }
            }else if(type === 9){
                if(this.firstcodeArr[index].numTextArr[ele].status){
                    this.firstcodeArr[index].numTextArr[ele].status = 0;
                    switch(group){
                        case '最大号':
                                let index = this.max_code_data.indexOf(val);
                                if (index > -1) {
                                    this.max_code_data.splice(index, 1);
                                };
                            break;
                        case '中间号':
                                index = this.middle_code_data.indexOf(val);
                                if (index > -1) {
                                    this.middle_code_data.splice(index, 1);
                                };
                            break;
                        case '最小号':
                                index = this.min_code_data.indexOf(val);
                                if (index > -1) {
                                    this.min_code_data.splice(index, 1);
                                };
                            break;
                    }
                }else{
                    this.firstcodeArr[index].numTextArr[ele].status = 1;
                    switch(group){
                        case '最大号':
                            this.max_code_data.push(val)
                            break;
                        case '中间号':
                                this.middle_code_data.push(val);
                            break;
                        case '最小号':
                               this.min_code_data.push(val);
                            break;
                    }
                }
            }else if(type === 10){
                if(this.sizeradioArr[index].numTextArr[ele].status){
                    this.sizeradioArr[index].numTextArr[ele].status = 0;
                    switch(group){
                        case '大小比':
                                let index = this.code_size_data.indexOf(val);
                                if (index > -1) {
                                    this.code_size_data.splice(index, 1);
                                };
                            break;
                        case '奇偶比':
                                index = this.parity_radio_code_data.indexOf(val);
                                if (index > -1) {
                                    this.parity_radio_code_data.splice(index, 1);
                                };
                            break;
                        case '质合比':
                                index = this.mass_radio_code_data.indexOf(val);
                                if (index > -1) {
                                    this.mass_radio_code_data.splice(index, 1);
                                };
                            break;
                    }
                }else{
                     this.sizeradioArr[index].numTextArr[ele].status = 1;
                     switch(group){
                        case '大小比':
                                this.code_size_data.push(val);
                            break;
                        case '奇偶比':
                                this.parity_radio_code_data.push(val);
                            break;
                        case '质合比':
                                this.mass_radio_code_data.push(val);
                            break;
                    }
                }
            }else if(type === 11){
                if(this.oddevenArr[index].numTextArr[ele].status){
                     this.oddevenArr[index].numTextArr[ele].status = 0;
                     index = this.odd_even_code_data.indexOf(val);
                    if (index > -1) {
                        this.odd_even_code_data.splice(index, 1);
                    };
                }else{
                    this.oddevenArr[index].numTextArr[ele].status = 1;
                    this.odd_even_code_data.push(val);
                }
            }else if(type === 12){
                if(this.sizestrArr[index].numTextArr[ele].status){
                     this.sizestrArr[index].numTextArr[ele].status = 0;
                     index = this.code_size_str_data.indexOf(val);
                    if (index > -1) {
                        this.code_size_str_data.splice(index, 1);
                    };
                }else{
                    this.sizestrArr[index].numTextArr[ele].status = 1;
                    this.code_size_str_data.push(val);
                }
            }else if(type === 13){
                if(this.coincidenceArr[index].numTextArr[ele].status){
                     this.coincidenceArr[index].numTextArr[ele].status = 0;
                     index = this.code_coincidence_data.indexOf(val);
                    if (index > -1) {
                        this.code_coincidence_data.splice(index, 1);
                    };
                }else{
                    this.coincidenceArr[index].numTextArr[ele].status = 1;
                    this.code_coincidence_data.push(val);
                }
            }
        },

        // 生成
        onGenerateFun(){
            this.is_turn=0;
            this.is_client_export = 0;
            this.postClientShrinkageToolDataOfPK10And11x5();
        },

        // 转组选
        onRotationGroupFun(){
            this.is_turn=1;
            this.is_client_export = 0;
            this.postClientShrinkageToolDataOfPK10And11x5();
        },

        // 导出
        onExportFun(){
            this.is_turn=0;
            this.is_client_export = 1;
            this.postClientShrinkageToolDataOfPK10And11x5();
        },

        // 复制
        onCopyFun(){
            let text=document.getElementById("textCont");
            text.select(); // 选择对象
            document.execCommand("Copy");  //执行浏览器拷贝
        },

        // 重置所有条件
        onResetFun(){
            this.resetNum();
        },

        // 发起网络请求
        postClientShrinkageToolDataOfPK10And11x5(){
            let lottery_id = this.$store.state.lottery_id;
            let is_pk10 = this.CaiPiaoType == 'pk10' ? 1 : 0;
            this.https('Analyse/postClientShrinkageToolDataOfPK10And11x5',{
                lottery_id:lottery_id,
                star_num:this.star_num,
                is_pk10:is_pk10,
                is_turn: this.is_turn,
                wan_fixed_code:{
                    type:this.wan_fixed_code_type,
                    data:this.wan_fixed_code_data.toString()
                },
                thousand_fixed_code:{
                    type:this.thousand_fixed_code_type,
                    data:this.thousand_fixed_code_data.toString()
                },
                hundred_fixed_code:{
                    type:this.hundred_fixed_code_type,
                    data:this.hundred_fixed_code_data.toString()
                },
                ten_fixed_code:{
                    type:this.ten_fixed_code_type,
                    data:this.ten_fixed_code_data.toString()
                },
                position_fixed_code:{
                    type:this.position_fixed_code_type,
                    data:this.position_fixed_code_data.toString()
                },
                thousand_biliary_code:{
                    type:this.thousand_biliary_code_type,
                    data:this.thousand_biliary_code_data.toString()
                },
                hundred_biliary_code:{
                    type:this.hundred_biliary_code_type,
                    data:this.hundred_biliary_code_data.toString()
                },
                ten_biliary_code:{
                    type:this.ten_biliary_code_type,
                    data:this.ten_biliary_code_data.toString()
                },
                position_biliary_code:{
                    type:this.position_biliary_code_type,
                    data:this.position_biliary_code_data.toString()
                },
                cross_span_code:{
                    type:this.cross_span_code_type,
                    data:this.cross_span_code_data.toString()
                },
                code_form:{
                    type:this.code_form_type,
                    data:this.code_form_data.toString()
                },
                code_size_middle_str:{
                    type:this.code_size_middle_str_type,
                    data:this.code_size_middle_str_data.toString()
                },
                code_size_str:{
                    type:this.code_size_str_type,
                    data:this.code_size_str_data.toString()
                },
                odd_even_code:{
                    type:this.odd_even_code_type,
                    data:this.odd_even_code_data.toString()
                },
                code_coincidence:{
                    type:this.code_coincidence_type,
                    data:this.code_coincidence_data.toString()
                },
                code_size:{
                    type:this.code_size_type,
                    data:this.code_size_data.toString()
                },
                parity_radio_code:{
                    type:this.parity_radio_code_type,
                    data:this.parity_radio_code_data.toString()
                },
                mass_radio_code:{
                    type:this.mass_radio_code_type,
                    data:this.mass_radio_code_data.toString()
                },
                link_code:{
                    type:this.link_code_type,
                    data:this.link_code_data.toString()
                },
                sum_code:{
                    type:this.sum_code_type,
                    data:this.sum_code_data.toString()
                },
                tailing_code:{
                    type:this.tailing_code_type,
                    data:this.tailing_code_data.toString()
                },
                code_type_012:{
                    type:this.code_type_012_type,
                    data:this.code_type_012_data.toString()
                },
                max_code:{
                    type:this.max_code_type,
                    data:this.max_code_data.toString()
                },
                min_code:{
                    type:this.min_code_type,
                    data:this.min_code_data.toString()
                },
                middle_code:{
                    type:this.middle_code_type,
                    data:this.middle_code_data.toString()
                } 
            },'post')
            .then(data => {
                        let root = '';
                        this.total_num = data.total_num;
                        for(var i in data.list){
                            if(root == ''){
                                root = data.list[i]
                            }else{
                                root = root +' '+data.list[i]
                            }
                        }
                    if(this.total_num != 0){
                        if(this.is_client_export == 1){
                            this.ondownload(root);
                        }else{
                            this.NumVal = root;
                        }
                    }else{
                        this.$message.error('本次生成0注，请重新选择号码缩水条件。');
                        this.NumVal = '';
                    }
            })
        },

        // 下载文件
        ondownload(data){ //下载txt文件
            var CaiPiaoLabel = this.$store.state.CaiPiaoLabel;
            var name = `[彩盟计划][${CaiPiaoLabel}]${this.file_name}`
            download(data, name, "text/plain");
        }
    }
}
</script>
<style lang="less" scoped>
@import url(../../assets/css/shrinkagetool/shrinkagetoolfivebits.less);
</style>


